<html>
  <head>
    <title>Manage Members</title>
    <script language="JavaScript" SRC="config.js"></script>
   	<script src="./lib/jquery.js" ></script>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="./lib/jquery.mobile-1.1.1.min.css" />
	<script src="./lib/jquery-1.7.1.min.js"></script>
	<script src="./lib/jquery.mobile-1.1.1.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    function get(){
		 alert("get is called");
       $.post('http://'+serverip+'/socialengine/mobileservice/announcement/showallannouncement',
           function(output){
       	alert(output.result); // hellothisisbob@gmail.com
       	$('li').empty();
       	for(key in output.Data) {
       		var body=(output.Data[key].body.replace('<p>','')).replace('<//p>','');
         	  $('#mylist').append('<li>'+'<a href="editannouncement.html?announcement_id='+output.Data[key].announcement_id+'" rel="external">'+'<p><b>'+output.Data[key].title +'</b></p>'+'<p>'+body+'</p>'+'<p>'+'Date Create: '+output.Data[key].creation_date+'</p>'+'</a>' +'</li>').listview('refresh');
       	
       	}
              
           },"json");
   };
    </script>
  </head>
<body onload="get();">
<div data-role="page">
	<div data-role="header">
	<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" rel="external">Home</a>
		<h1>Manage Announcement</h1>
	</div><!-- /header -->
	<div   data-role="content">
	<p>Post New Announcement<a href="postannouncement.html" data-role="button" data-icon="plus" data-iconpos="notext" rel="external">Plus</a></p>
	<ul data-role="listview"  id="mylist" data-filter="true">
	</ul>
  </div><!-- /content -->

</div><!-- /page -->
 </body>
</html>